home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 20 / 9 / DISK2096.ZIP / COLLECT.ARC / COLLECT.DOC next >
Text File  |  1990-03-07  |  3KB  |  75 lines

  1.  
  2.  COMPILE: SPITBOL COLLECT /NE /NS /NL /S=13 /B=20;
  3.  
  4.  
  5.  
  6.  
  7. COLLECT makes it easy to select characters from different download
  8. font and to write it to one character set file. You need not go through
  9. all the hassle, described in the FONTED.DOC files, once you have mastered
  10. this little utility.
  11.  
  12. Basically, it is very similyr in its operation to SELECT, but it works on
  13. download printer font files (.BIN in our examples).
  14.  
  15. It reads a .SCR file, as SELECT does, but the structure of this file is
  16. different from SELECT.SCR.
  17.  
  18. The following rules apply:
  19.  
  20. - The first line in the COLLECT.SCR file MUST give type information
  21.   on the font to be assembled. The format of this information is identical
  22.   to that in FONTED.CNF, so you can copy the line, describing the type of
  23.   font that you are creating.
  24. - Empty lines or lines, starting with an asterisk are ignored
  25. - Valid selection command lines consist of three fields (in sequence),
  26.   separated by an arbitrary number of blanks:
  27.      the decimal ASCII code of the character in the new file
  28.      path and file names of the file, where to take it from
  29.      the decimal ASCII value of the character, under which the character pattern
  30.     is stored in the file.
  31.  
  32.  
  33. Supposed, you want to extract three characters from different files into a new
  34. character set, called 'new.bin' (elite characters)
  35.  
  36. First, write a file (or copy it from a stock of such files) COLLECT.SCR.
  37.  
  38. Make sure, the first line of the file defines the type of the font correct-
  39. ly (elite in our example). Your first line should then read:
  40.  
  41.  
  42.  
  43. EL=27 120 1 27 77=26=30
  44. * Definition for ELite printing (12 characters per inch)
  45.  
  46.  
  47. Now add the selection commands. In our example, they might read:
  48.  
  49. 12 C:\TEXTS\GENERAL\FONTED\FONTS\GREEK.BIN    99
  50. 13 C:\TEXTS\GENERAL\FONTED\FONTS\SANSERIF.BIN    85
  51. 14 C:\TEXTS\GENERAL\FONTED\FONTS\UNCIAL.BIN    85
  52.  
  53. You need not format the line.
  54.  
  55. Now save your COLLECT.SCR script file, and run the program. Make sure, the program,
  56. the script file and all font reside in the correct directories, and type
  57.  
  58. COLLECT new.bin
  59.  
  60. As a result, you should get a new font file that you should load into
  61. FONTED, to see, if everything has worked correctly.
  62.  
  63. With COLLECT, you can keep batch files that assemble new fonts from smaller
  64. peaces. This is especially useful, if you use the same characters in different
  65. character sets. Instead of editing them all over, use a strategy that
  66. resembles the MAKE process, familiar to C programmers.
  67.  
  68. Burkhard Meißner
  69. Friedheim 86                    Ringstraße 23
  70. 2390 Flensburg                    8521 Spardorf
  71. West-Germany                    West-Germany
  72. tel.:
  73. 0049-461-30315                    0049-9131-57651
  74.  
  75.